package com.example.demo.controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.Random;

@RestController
public class RandomNumberController {

    @GetMapping("/random")
    public int getRandomNumber() {
        Random random = new Random();
        int randomNumber = random.nextInt(1000);
        return randomNumber;
    }
}

